package com.wn.cloud.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @FileName: ExceptionEnum
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/3/8 - 0:41
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@AllArgsConstructor
public enum ResponseEnum {
    SUCCESS(200, "成功"),
    UNKNOWN_EXCEPTION(9999, "未知异常"),
    FALLBACK(8888, "全局默认fallback"),
    ID_NOT_NEGATIVE(7777, "ID不能为负数"),
    SENTINEL_DEFAULT_BLOCK(6666, "sentinel 默认blockHandler")
    ;

    @Setter
    @Getter
    private int code;

    @Setter
    @Getter
    private String message;
}
